package com.asen.business.commons.service;

import com.asen.business.commons.domain.Bill;
import com.asen.commons.core.base.service.GenericService;

/**
 * 基础资料Service接口
 *
 * @author Gary
 * @version 1.0
 * @date 2018-12-09
 */
public interface BillService<T extends Bill> extends GenericService<T> {

    /**
     * 检查编码是否重复
     *
     * @param id
     * @param number
     * @throws Exception
     */
    void checkDupByNumber(Long id, String number) throws Exception;

    /**
     * 获取对象
     *
     * @param number
     * @return
     * @throws Exception
     */
    T getByNumber(String number) throws Exception;
}
